import request from '../../../utils/request.js'
import { Session } from '../../../utils/storage.js'

export const getPayableList = () => {
  return request({
    url: "/jeecg-boot/finance/finPayable/list/2",  // 去掉了/jeecg-boot前缀（根据之前404错误建议）
    method: "get",
    params: {
      _t: 1753940324,  // 使用您指定的固定时间戳
      isVoided: 0,
      column: 'createTime',
      order: 'desc',
      field: [
        'id',
        'billNo',
        'billDate',
        'subject',
        'srcNo',
        'supplierId_dictText',
        'opDept_dictText',
        'operator_dictText',
        'amt',
        'checkedAmt',
        'billStage_dictText',
        'isEffective_dictText',
        'isClosed_dictText',
        'isVoided_dictText',
        'isAuto_dictText',
        'isRubric_dictText',
        'remark',
        'effectiveTime',
        'approver_dictText',
        'createTime',
        'createBy_dictText',
        'sysOrgCode_dictText',
        'updateTime',
        'updateBy_dictText'
      ].join(','),  // 数组方式更易维护
      pageNo: 1,
      pageSize: 10,
    //   isApproved: 1,
    //   isEffective: 1,
    //   isClosed: 0
    }
  })
}